package com.bjb.vr.common.constant;


/**
 * @description: 通用常量信息
 * @author: HuJingBo
 * @time: 2022/3/3 14:42
 */
public class Constants {

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 验证码有效期（分钟）
     */
    public static final long CAPTCHA_EXPIRATION = 2;

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 当前系统版本
     */
    public static final String SYSTEM_VERSION = "version";

    /**
     * 是否需要更新密码
     */
    public static final String REQUIRE_CHANGE_PASS = "requireChangePass";

    /**
     * 当前系统版本--运营端
     */
    public static final String SYSTEM_OPT_VERSION = "optVersion";

    /**
     * 运营端默认租户
     */
    public static final String OPT_TENANT = "同辉佳视";

    /**
     * 运营端默认租户
     */
    public static final String OPT_TENANT_CODE = "1082";

    /**
     * 默认初始密码后缀
     */
    public static final String INIT_PASS_SUFFIX = "abc";

    /**
     * 状态：0->禁用；1->启用
     */
    public static final Integer DISABLE = 0;
    /**
     * 状态：0->禁用；1->启用
     */
    public static final Integer ENABLE = 1;

    /**
     * 是否为初始化密码：0->否；1->是
     */
    public static final Integer NO = 0;

    /**
     * 地址魔法值
     */
    public static final String ADDRESS_VALUE = "--";
}
